Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async wrapper #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Async wrapper #25

wants to merge 2 commits into from

Conversation

juliuskoval
Copy link
Owner

@juliuskoval juliuskoval commented Feb 22, 2025

The change is largely based on 1d56102.
Here are benchmarks for comparison
image
The top is without the change, the bottom with the change if I don't check for whether the target is wrapped. Interestingly, more memory is allocated on .NET 8.0 in the second case. Both were for async=false.

@juliuskoval juliuskoval requested a review from AB027PS February 22, 2025 19:52
private bool _checked = false;
private bool _isWrapped;

public bool IsWrapped
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a better way to check if the target is wrapped?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant